home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / gfx / jpegaga2.lha / jpegAGAsrc / ppm2aga / ppm2AGA.h < prev    next >
C/C++ Source or Header  |  1994-04-18  |  985b  |  44 lines

  1. /* ppm2AGA.h V1.0 */
  2.  
  3. #include <setjmp.h>
  4. #ifndef IFFP_IFF_H
  5. #include <iffp/iff.h>
  6. #endif
  7. #ifndef _PPM_H
  8. #include "ppm.h"
  9. #endif
  10. #include "ppmcmap.h"
  11.  
  12.  
  13. #include <stdio.h>
  14.  
  15.  
  16. /* definitions for ppm2ilbm */
  17. #define ESTIMATE 0
  18. #define HAM6     1
  19. #define HAM8     2
  20. #define COLORMAP 3
  21.  
  22. #define LARGE_NORM
  23. #define REP_AVERAGE_PIXELS
  24.  
  25. pixel *next_pixrow(FILE *fp, int row, int ColorShift);
  26. colorhist_vector
  27. ppm_fcomputecolorhist(FILE *pixels, int cols, int rows,
  28.                   int maxcolors, int *colorsP, int ColorShift, int cluster);
  29. colorhash_table
  30. ppm_fcomputecolorhash(FILE *pixels, int cols, int rows, 
  31.                       int maxcolors, int *colorsP, int ColorShift, int cluster);
  32. colorhist_vector
  33. ppm_fcolorhashtocolorhist(colorhash_table cht, int maxcolors, int cluster);
  34.  
  35. colorhist_vector
  36. mediancut( colorhist_vector chv, int colors, int sum, pixval maxval, int newcolors);
  37.  
  38. /* definitions for iffp modules */
  39.  
  40. #ifdef message
  41.  #undef message
  42. #endif
  43. #define message pm_message
  44.